import axios from '@/axios';

// 基础信息
export function baseMsg(data) {
    return axios({
        url: '/index/base-msg',
        method: 'post',
        data
    })
}

// 地址三级
export function areaList(data) {
    return axios({
        url: '/index/area-list',
        method: 'post',
        data
    })
}

// 文件上传
export function upFile(data) {
    return axios({
        url: '/index/up-file',
        method: 'post',
        data
    })
}

// 标签列表
export function tagList(data) {
    return axios({
        url: '/index/tag-list',
        method: 'post',
        data
    })
}

// 员工登录
export function memberLogin(data) {
    return axios({
        url: '/members/login',
        method: 'post',
        data
    })
}

// 获取验证码
export function sendCode(data) {
    return axios({
        url: '/members/send-code',
        method: 'post',
        data
    })
}

// 验证码登录
export function msmsLogin(data) {
    return axios({
        url: '/members/sms-login',
        method: 'post',
        data
    })
}

// 验证码登录
export function checkMember(data) {
    return axios({
        url: '/members/get-my-info',
        method: 'post',
        data
    })
}

// 创建员工
export function createMember(data) {
    return axios({
        url: '/members/create-member',
        method: 'post',
        data
    })
}

// 员工列表
export function memberList(data) {
    return axios({
        url: '/members/member-list',
        method: 'post',
        data
    })
}

// 修改员工信息
export function changeMember(data) {
    return axios({
        url: '/members/change-member',
        method: 'post',
        data
    })
}

// 修改我的信息
export function changeMy(data) {
    return axios({
        url: '/members/change-my',
        method: 'post',
        data
    })
}

// 线索，客户，商机，订单关注
export function star(data) {
    return axios({
        url: '/users/star',
        method: 'post',
        data
    })
}
